/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.designpatterns.creational.prototype.model;

/**
 *
 * @author user
 */
public class Dogs implements Prototype{

    private String sound;

    public Dogs(String sound){
        this.sound = sound;
    }  
    
    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }
    
    @Override
    public Prototype doClone() {
        return new Dogs(sound);
    }
    
    public String toString(){
        return "This dog says "+getSound();
    }
    
}
